﻿using BCCommon.TMS.Insurance;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace BCEntity.TMS.PersonalInsuranceRecord
{
    public class PersonalInsuranceRecordEntity
    {
        /// <summary>
        /// 个人保险单记录Id
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public long PersonalInsuranceRecordId { get; set; }

        /// <summary>
        /// 电子保单地址
        /// </summary>
        public string ElectricInsurancePath { get; set; }
        /// <summary>
        /// 承保公司
        /// </summary>
        public string UnderwritingCompany { get; set; }
        /// <summary>
        /// 投保人
        /// </summary>
        public string Policyholder { get; set; }
        /// <summary>
        /// 被保人
        /// </summary>
        public string Insured { get; set; }
        /// <summary>
        /// 保险内容
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 身份证号
        /// </summary>
        public string IdentityCardNo { get; set; }
        /// <summary>
        /// 保额
        /// </summary>
        public decimal InsuredAmount { get; set; }
        /// <summary>
        /// 保费
        /// </summary>
        public decimal Premium { get; set; }
        /// <summary>
        /// 生效日期
        /// </summary>
        public DateTime EffectiveTime { get; set; }
        /// <summary>
        /// 失效日期
        /// </summary>
        public DateTime ExpirationTime { get; set; }
        /// <summary>
        /// 登记时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public string Status { get; set; }
        /// <summary>
        /// 公司Id
        /// </summary>
        public long CompanyId { get; set; }
        /// <summary>
        /// 司机Id
        /// </summary>
        public long? DriverId { get; set; }

    }
}
